import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store/index'

// 导入重置样式和公共样式
import './assets/style/reset.css'
import './assets/style/common.css'
import 'amfe-flexible'

// 导入所有Vant
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

// 原型挂载axios
import $axios from '@/utils/request'
Vue.prototype.$axios = $axios

// 导入全局混入mixin（代码放在Vant组件库之后）
import mixin from './mixin/index'
Vue.mixin(mixin)

Vue.config.productionTip = false

new Vue({
  // 把router挂载到Vue实例
  router,
  // 把store挂载到Vue实例
  store,
  render: (h) => h(App),
}).$mount('#app')
